<?php
/**
 * Created by PhpStorm.
 *
 * @author Tian.Yuxing
 * @email tianyuxing@sciall.org.cn
 * Date: 2025/9/16
 * Time: 21:39
 */

namespace Modules\DataCheck\Http\Controllers;

use Catch\Base\CatchController as Controller;

/**
 * Modules\DataCheck\Http\Controllers BaseController.
 */
class BaseController extends Controller
{
    protected string $module = 'DataCheck';
    protected string $moduleName = '数据核对';
    protected function formatPaginate(array $data): array
    {
        $removeField = [
            'first_page_url',
            'from',
            'last_page',
            'last_page_url',
            'links',
            'next_page_url',
            'path',
            'per_page',
            'prev_page_url',
            'to',
        ];

        foreach ($removeField as $field) {
            unset($data[$field]);
        }
        return $data;
    }
}